<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<html>
<head>

</head>
<body>



	<div class="row">
		<div class="col-lg-4"></div>
		<div class="col-lg-4">
			<div class="container well">
				<h1>Login - (1 / 1)</h1>
				<div class="section">
					<c:if test="${not empty param.login_error}">
						<div class="errors">
							<fmt:message key="login.msg.failure" />
							<br /> <br />
							<fmt:message key="login.failure.reason" />
							: ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
						</div>
					</c:if>
				</div>

				<form name="f" action="<c:url value="/loginProcess" />"
					method="post">
					<fieldset>
						<div class="form-group">
							<label class="control-label" for="j_username"><fmt:message
									key="login.username" />:</label>
							<div class="controls">
								<input type="text" name="j_username" id="j_username"
									value="${SPRING_SECURITY_LAST_USERNAME}" class="form-control" />
							</div>

						</div>
						<div class="form-group">
							<label for="j_password"><fmt:message key="login.password" />:</label>
							<input type="password" name="j_password" id="j_password"
								class="form-control " />
						</div>
						<div class="form-group">

							<label for="remember_me"><fmt:message
									key="login.rememberMe" />:</label>
							<div class="controls">
								<input type="checkbox" name="_spring_security_remember_me"
									id="remember_me" />
							</div>
						</div>

						<div class="form-buttons">
							<div class="button">
								<input name="submit" id="submit" type="submit"
									value="<fmt:message key="button.login"/>"
									class="btn btn-default" />
							</div>
						</div>
					</fieldset>
				</form>

			</div>
		</div>
	</div>
	<div class="col-lg-4"></div>

</body>
</html>